package jnpf.controller;

import jnpf.base.ActionResult;
import jnpf.model.meeting.dto.MeetingAddDTO;
import jnpf.service.AddService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/api/bt/add")
public class AddMeetingController {
//新增
    @Autowired
    private AddService addService;

    @PostMapping("/addMeeting")
    public ActionResult addMeeting(@RequestBody MeetingAddDTO meetingAddDTO) {
        return ActionResult.success(addService.addMeeting(meetingAddDTO));
    }

}
